import "./assets/main.css"
import { createApp } from "vue"
import MarsUIInstall from "@/components/mars-ui"
import { injectState, key } from "@/common/store/widget"
import "@/components/mars-ui/common"
import store from "./widgets/widget-store"
import App from "./App.vue"
import router from "./router"
/**
 * 解决低版本浏览器 globalthis undefined 问题
 */
import "globalthis/auto"

const app = createApp(App)

// 安装火星组件库
MarsUIInstall(app)

app.use(injectState(store), key)

app.use(router)

app.mount("#app")
